Skip to main content

Full text of "Arduino"

See other formats


2-Player Pong Game with Arduino Uno 



.1 



Make Projects 



build, hack, tweak, share, discover^ 



2-Player Pong Game with 
Arduino Uno 

Written By: Onur Avun 



TOOLS: 



Arduino Uno (1) 

Breadboard (1) 

Jumper Wire (20) 

PCD8544 LCD screen (1) 
Nokia5110 screen 

Potentiometer. 5kQ (2) 



SUMMARY 

Classical Pong game implemented on an Arduino Uno using a PCD8544 LCD screen which 
is better known as the Nokia 5110 screen. 

Player bars are controlled by a potentiometer for each player. If you want the bar to go left, 
just turn the potentiometer left. 



© Make Projects www.makeprojects.com Page 1 of 4 



2-Player Pong Game with Arduino Uno 



© Make Projects www.makeprojects.com Page 2 of 4 



2-Player Pong Game with Arduino Uno 



Step 1 — 2-Player Pong Game with Arduino Uno 




• Connect the Arduino Uno, 
PCD8544 LCD screen and 2 
potentiomaters as shown in the 
Fritzing diagram. 



Step 2 



G D srduino.«yen/Mam/Sottvvare 



ARDUINO 



Download the Arduino Software 

Tilt np*m- source Arduir.a eT-.-.-ira-prnert mak«; it easy to WtiW cade an a* upload it Ca the i/o board. It 
runs- on Windows, Mac OS X, and Linus. The environment is written in Java and bawd dil 
PniCBi aim , avr-BCC, and ether Open source software. 



THE Afiju.na SOFTWARE IS PROVIDED TO vOU "AS IS," AND WE MAIS 
NO EXPRESS CF IMPLIED WARRANTIES WHATSOEVER WITH RESPECT 
TO ITS FUNCTIONALITY. OPEftABlLlTY. OR USE. INCLUDING. WITHOUT 
LIMITATION, ANY- EMPLIED WARRANTIES OF MERCHANTABILITY. 
FITNESS FOR A PARTICULAR PURPOSE. OR INFRINGEMENT, WE 
EXPRESSLY DISCLAIM APtY LIABILITY WHATSOEVER FOR ANY DIRECT, 
INDIRECT, CONSEQUENTIAL, INCIDENTAL OR SPECIAL DAMAGES. 
INCLUDING. WITHOUT LIMITATION. LOST REVENUES. LOST PROFITS. 
LOSSES RESULTING ftOH BUSINESS INTERRUPTION OR LOSS Of 
DATA. REGARCLE55 OF THE FOSM OF ACTION Oft LEGAL THEORY 
UNBEft WHICH THE LIABILITY MAY BE ASSERTED, EVEN IF ADVISED OF 

TH5 i 



By downloading th* software froni this page, you agree to the specified ti 




Download 


Next steps 


Arduino 1.0.3 (release notes), hosted bv Goagle Cnder 


Getting Started 


+ Mac OS X 


Reference 
Environment 



• Download Arduino software from 
http://arduino.cc/en/Main/Software 



© Make Projects 



www.makeprojects.com 



Page 3 of 4 



2-Player Pong Game with Arduino Uno 



Step 3 



TTps://githubxom/mariur/Arduino-Urso-PCD8544-Poiig 

£) • Seardi or lype a command © © Explore Gi&t Blog Help 



p monur/Arduino-Uno-PCDB544~Pong 



fl Pull Request <35IJnwatch: 



^moftur £ ?< E" 
* Star p Fork 



Code Network Pull Requests □ 


lssu es □ 


MM 




Graphs 






Settings 


Classical Pong game implemented with Aiduino Una and a Nokia5110 L 


:0 5creen(PCD8564) - 


- Read more 










Road* Write 4Gt*&5 

Tags 








S$ Clone in Windows <j> HP HTTP SSH Git Ft&ad-Only 


https://gitlriul].coir/ionijr/ArdiJiiH] 


i.r.o 


. pr_C :;■-;.__ 


r-o' 


e 
















(? branch mastei * Files Commits Branches 1 


Vrdumo-Uno-PCD8544-Pong/ 3 














©3 commit 



Updale READMEmd 

monurautticr*d2 days age 
Wi Pong.ino 
It README md 



2 days ago 
2 days ago 



Create Pong.ino [mcnur] 
Update README. md [manur] 



Bl README.md 



Arduino-Uno-PCD8544-Pong 

Classical Pong game impienienled with Arduino Uno and a Hokia51 1 G LCD screen(PCD&554) 



• Download the Arduino sketch 
(Pong.ino file) from 
https://github.com/monur/Arduino- 
Uno-PCD... 



Step 4 



rke Edrt Sleuth Todi 



OO DOS 



mcinc hh_3ce t 

deClDC PIS_BC 4 

'Define TIB.apili J 

■fleCiDE fin_acr J K J 



lee i««i,ihit - 1$: 

Hit taclt^i^ir ■ 4; 

int. Ii.il. I Fern* tec * tl 
uTdignm me ewix ■ o; 
uraigocH lrjr bulY ■ Dj 
uiu k vra-L ian bii-EK • 0; 
uraigibut lnc huiY ■ LCDjr 
:n- lallX « D; 
Inc lain ■ 0; 

baa-Has, OBtUVf, - CaJje; 
baolue laSuilSigfit • tm*i 

bfU pJs*mio_Jtj[LCDjij! 





• Open Pong.ino sketch with Arduino IDE software 

• Connect the Arduino Uno to your computer with a USB cable. 

• In the Arduino IDE software menu, select Tools->Board->Arduino Uno 

• In the Arduino IDE menu, select File->Upload or use the shortcut key combination Ctrl-U 

• The game starts in the LCD screen. You can control the bars using the potentiometers. 

This document was last generated on 2013-02-27 01:35:05 PM. 



© Make Projects 



www.makeprojects.com 



Page 4 of 4